from flask_restful import Api
from flask import Blueprint
from comment.utils.output import output_json


#初始化消息模块的蓝图
card_bp = Blueprint('cards', __name__,url_prefix='/card' )

card_api = Api(card_bp)

#使用定制好的返回到前端格式json
card_api.representation('application/json')(output_json)


from financial.resource.card.crad_resource import *

card_api.add_resource(Crad_Resource,'/card',endpoint='card')